using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace dfp_1._1.clases
{
    public partial class frmProperty : Form
    {
        public frmProperty(pnlAreaDisenio pDis)
        {
            InitializeComponent();
            pDisenio = pDis;
        }


        public void mostrarPropiedades(DiagramaShapes.c_BaseFigure cTarget)
        {
            target = cTarget;

            ArrayList sTemp = target.getPropertysArray();

            this.grdPropiedades.Rows.Clear();
            this.Text = "Propiedades de " + target.Name;
            
            foreach (string[] s in sTemp)
                this.grdPropiedades.Rows.Add(s);
            this.Show();

        }

        private void frmProperty_FormClosing(object sender, FormClosingEventArgs e)
        {
            pDisenio.frmProperties = null;
        }

        private void grdPropiedades_CellValidated(object sender, DataGridViewCellEventArgs e)
        {
            ;
        }

        

        

    }
}